package com.alibaba.nacos.config.server.jpa.aspect;

import com.alibaba.nacos.config.server.jpa.service.impl.RolePersistServiceImpl;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * The type of nacos-all.
 *
 * @author 问道于盲
 * @date 2020-03-10
 */
@Component
@Aspect
public class RolePersistServiceAspect extends AbstractPersistServiceAspect {

    @Autowired
    private RolePersistServiceImpl persistService;

    public RolePersistServiceAspect() {
        init(RolePersistServiceImpl.class);
    }


    @Pointcut("within(com.alibaba.nacos.config.server.auth.RolePersistService)")
    public void pointCut() {

    }

    @Around("pointCut()")
    public Object proceed(ProceedingJoinPoint joinPoint) throws Throwable {
        return proceed(joinPoint, persistService);
    }


}
